# start up the game

from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from core.support import build_route, default_route

# define our routes
game_routes = [
               build_route('restart','RestartHandler'),
               build_route('prisoncell','PrisonCellHandler'),
               build_route('prisonhall','PrisonHallHandler'),
               build_route('wardensoffice','WardensOfficeHandler'),
               build_route('closet','ClosetHandler'),
               build_route('prisonyard','PrisonYardHandler'),
               build_route('victory_room','VictoryRoomHandler'),
               build_route('recordplayer','RecordPlayerHandler'),
               build_route('mirror','MirrorHandler'),
               build_route('wardensdesk','WardensDeskHandler'),
               build_route('beachroom','BeachRoomHandler'),
               build_route('splashscreen','SplashScreenHandler'),
               default_route('splashscreen','SplashScreenHandler'),
               ]

application = webapp.WSGIApplication(game_routes, debug=True)


def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
